@charset "UTF-8";
/**
 * Classic LaTeX Beamer Theme for Reveal.js
 * Emulates the iconic Cambridge / Madrid LaTeX Beamer presentation layout
 */
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Latin+Modern+Roman:wght@400;700&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap");
.reveal .has-light-background, .reveal .has-light-background h1, .reveal .has-light-background h2, .reveal .has-light-background h3, .reveal .has-light-background h4, .reveal .has-light-background h5, .reveal .has-light-background h6 {
  color: #1f2937;
}

/*********************************************
 * GLOBAL STYLES
 *********************************************/
:root {
  --r-background-color: #ffffff;
  --r-main-font: Source Sans 3, Helvetica Neue, Arial, sans-serif;
  --r-main-font-size: 21px;
  --r-main-color: #1f2937;
  --r-block-margin: 20px;
  --r-heading-margin: 0 0 20px 0;
  --r-heading-font: Source Sans 3, Helvetica Neue, Arial, sans-serif;
  --r-heading-color: #0b2545;
  --r-heading-line-height: 1.25em;
  --r-heading-letter-spacing: 0.01em;
  --r-heading-text-transform: none;
  --r-heading-text-shadow: none;
  --r-heading1-font-weight: 700;
  --r-heading2-font-weight: 700;
  --r-heading3-font-weight: 700;
  --r-heading4-font-weight: 700;
  --r-heading5-font-weight: 700;
  --r-heading6-font-weight: 700;
  --r-heading1-text-shadow: none;
  --r-heading1-size: 3.77em;
  --r-heading2-size: 2.11em;
  --r-heading3-size: 1.55em;
  --r-heading4-size: 1em;
  --r-heading5-size: 0.8em;
  --r-heading6-size: 0.6em;
  --r-code-font: Fira Code, Consolas, monospace;
  --r-link-color: #1d4ed8;
  --r-link-color-dark: rgb(7.8215286114%, 21.037214886%, 58.2569027611%);
  --r-link-color-hover: #1e40af;
  --r-selection-background-color: rgba(19, 64, 116, 0.25);
  --r-selection-color: #fff;
}

.reveal-viewport {
  background-color: #ffffff;
  background-color: var(--r-background-color);
}

.reveal {
  font-family: var(--r-main-font);
  font-size: var(--r-main-font-size);
  font-weight: normal;
  color: var(--r-main-color);
}

.reveal ::selection {
  color: var(--r-selection-color);
  background: var(--r-selection-background-color);
  text-shadow: none;
}

.reveal ::-moz-selection {
  color: var(--r-selection-color);
  background: var(--r-selection-background-color);
  text-shadow: none;
}

.reveal .slides section,
.reveal .slides section > section {
  line-height: 1.3;
  font-weight: inherit;
}

/*********************************************
 * HEADERS
 *********************************************/
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  margin: var(--r-heading-margin);
  color: var(--r-heading-color);
  font-family: var(--r-heading-font);
  line-height: var(--r-heading-line-height);
  letter-spacing: var(--r-heading-letter-spacing);
  text-transform: var(--r-heading-text-transform);
  text-shadow: var(--r-heading-text-shadow);
  word-wrap: break-word;
}

.reveal h1 {
  font-size: var(--r-heading1-size);
}

.reveal h2 {
  font-size: var(--r-heading2-size);
}

.reveal h3 {
  font-size: var(--r-heading3-size);
}

.reveal h4 {
  font-size: var(--r-heading4-size);
}

.reveal h5 {
  font-size: var(--r-heading5-size);
}

.reveal h6 {
  font-size: var(--r-heading6-size);
}

.reveal h1 {
  font-weight: var(--r-heading1-font-weight);
}

.reveal h2 {
  font-weight: var(--r-heading2-font-weight);
}

.reveal h3 {
  font-weight: var(--r-heading3-font-weight);
}

.reveal h4 {
  font-weight: var(--r-heading4-font-weight);
}

.reveal h5 {
  font-weight: var(--r-heading5-font-weight);
}

.reveal h6 {
  font-weight: var(--r-heading6-font-weight);
}

.reveal h1 {
  text-shadow: var(--r-heading1-text-shadow);
}

/*********************************************
 * OTHER
 *********************************************/
.reveal .slides > section.drop {
  padding-top: 0;
  padding-bottom: 0;
  height: 100%;
}

.reveal p {
  margin: var(--r-block-margin) 0;
  line-height: 1.3;
}

/* Remove trailing margins after titles */
.reveal h1:last-child,
.reveal h2:last-child,
.reveal h3:last-child,
.reveal h4:last-child,
.reveal h5:last-child,
.reveal h6:last-child {
  margin-bottom: 0;
}

.reveal img,
.reveal video,
.reveal iframe {
  max-width: 100%;
  max-height: 100%;
}

.reveal strong,
.reveal b {
  font-weight: bold;
}

.reveal em {
  font-style: italic;
}

.reveal ol,
.reveal dl,
.reveal ul {
  display: inline-block;
  text-align: left;
  margin: 0 0 0 1em;
}

.reveal ol {
  list-style-type: decimal;
}

.reveal ul {
  list-style-type: disc;
}

.reveal ul ul {
  list-style-type: square;
}

.reveal ul ul ul {
  list-style-type: circle;
}

.reveal ul ul,
.reveal ul ol,
.reveal ol ol,
.reveal ol ul {
  display: block;
  margin-left: 40px;
}

.reveal dt {
  font-weight: bold;
}

.reveal dd {
  margin-left: 40px;
}

.reveal blockquote {
  display: block;
  position: relative;
  width: 70%;
  margin: var(--r-block-margin) auto;
  padding: 5px;
  font-style: italic;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

.reveal blockquote p:first-child,
.reveal blockquote p:last-child {
  display: inline-block;
}

.reveal q {
  font-style: italic;
}

.reveal pre {
  display: block;
  position: relative;
  width: 90%;
  margin: var(--r-block-margin) auto;
  text-align: left;
  font-size: 0.55em;
  font-family: var(--r-code-font);
  line-height: 1.2em;
  word-wrap: break-word;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.reveal code {
  font-family: var(--r-code-font);
  text-transform: none;
  tab-size: 2;
}

.reveal pre code {
  display: block;
  padding: 5px;
  overflow: auto;
  max-height: 400px;
  word-wrap: normal;
}

.reveal .code-wrapper {
  white-space: normal;
}

.reveal .code-wrapper code {
  white-space: pre;
}

.reveal table {
  margin: auto;
  border-collapse: collapse;
  border-spacing: 0;
}

.reveal table th {
  font-weight: bold;
}

.reveal table th,
.reveal table td {
  text-align: left;
  padding: 0.2em 0.5em;
  border-bottom: 1px solid;
}

.reveal table th[align=center],
.reveal table td[align=center] {
  text-align: center;
}

.reveal table th[align=right],
.reveal table td[align=right] {
  text-align: right;
}

.reveal table tbody tr:last-child th,
.reveal table tbody tr:last-child td {
  border-bottom: none;
}

.reveal sup {
  vertical-align: super;
  font-size: smaller;
}

.reveal sub {
  vertical-align: sub;
  font-size: smaller;
}

.reveal small {
  display: inline-block;
  font-size: 0.6em;
  line-height: 1.2em;
  vertical-align: top;
}

.reveal small * {
  vertical-align: top;
}

.reveal img {
  margin: var(--r-block-margin) 0;
}

/*********************************************
 * LINKS
 *********************************************/
.reveal a {
  color: var(--r-link-color);
  text-decoration: none;
  transition: color 0.15s ease;
}

.reveal a:hover {
  color: var(--r-link-color-hover);
  text-shadow: none;
  border: none;
}

.reveal .roll span:after {
  color: #fff;
  background: var(--r-link-color-dark);
}

/*********************************************
 * Frame helper
 *********************************************/
.reveal .r-frame {
  border: 4px solid var(--r-main-color);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.reveal a .r-frame {
  transition: all 0.15s linear;
}

.reveal a:hover .r-frame {
  border-color: var(--r-link-color);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
}

/*********************************************
 * NAVIGATION CONTROLS
 *********************************************/
.reveal .controls {
  color: var(--r-link-color) !important;
}

/*********************************************
 * PROGRESS BAR
 *********************************************/
.reveal .progress {
  background: rgba(0, 0, 0, 0.2);
  color: var(--r-link-color);
}

/*********************************************
 * PRINT BACKGROUND
 *********************************************/
@media print {
  .backgrounds {
    background-color: var(--r-background-color);
  }
}
/*********************************************
 * CHART BACKGROUND
 *********************************************/
.has-dark-background canvas[data-chart] {
  background-color: white;
}

.has-light-background canvas[data-chart] {
  background-color: unset;
}

canvas[data-chart] {
  padding: 0.5em;
}

/*********************************************
 * Highlight.js
 *********************************************/
.reveal .hljs {
  min-height: 50%;
}

.reveal .slides {
  text-align: left;
}

.reveal .slides section {
  padding: 20px 36px;
}

/* Classic Beamer Top Frame Header */
.reveal h1, .reveal h2 {
  background: linear-gradient(135deg, #0b2545 0%, #134074 100%);
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: 6px;
  margin-bottom: 24px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(11, 37, 69, 0.18);
  letter-spacing: 0.02em;
}

.reveal h1 {
  font-size: 1.6em;
}

.reveal h2 {
  font-size: 1.25em;
  width: 100%;
}

.reveal h3 {
  color: #0b2545;
  font-size: 1.08em;
  font-weight: 700;
  margin-top: 18px;
  margin-bottom: 10px;
  border-left: 4px solid #1d4ed8;
  padding-left: 12px;
}

/* Paragraphs & Typography */
.reveal p {
  line-height: 1.6;
  margin-bottom: 1em;
}

/* Bullet Points (Classic Beamer Triangles/Squares) */
.reveal ul {
  list-style: none;
  padding-left: 1.2em;
  line-height: 1.65;
}

.reveal ul > li {
  position: relative;
  margin-bottom: 0.35em;
}

.reveal ul > li::before {
  content: "▶";
  color: #1d4ed8;
  font-size: 0.65em;
  position: absolute;
  left: -1.2em;
  top: 0.2em;
}

/* MathJax & KaTeX */
.reveal .mjx-chtml, .reveal .katex-display {
  margin: 1.1em auto !important;
  color: #0f172a;
  font-size: 1.08em;
}

/* Classic Beamer Framed Block Environments */
.callout {
  border-radius: 6px !important;
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.09) !important;
  overflow: hidden !important;
  border: 1px solid rgba(var(--callout-color), 0.35) !important;
  border-left: none !important;
  background: #f8fafc !important;
  margin: 1.3em 0 !important;
  padding: 0 !important;
}

.callout .callout-title {
  background: linear-gradient(90deg, rgb(var(--callout-color)), rgba(var(--callout-color), 0.85)) !important;
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 8px 16px !important;
  border-bottom: none !important;
}

.callout .callout-title .callout-icon {
  color: #ffffff !important;
}

.callout .callout-content {
  background: #ffffff !important;
  padding: 14px 20px !important;
  color: #1e293b !important;
  line-height: 1.6;
}

/* Code Syntax Blocks */
.reveal pre code {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-left: 4.5px solid #134074;
  border-radius: 6px;
  padding: 14px 20px;
  font-size: 0.85em;
  line-height: 1.5;
}

/* Beamer Data Tables */
.reveal table {
  border-collapse: collapse;
  margin: 1.5em auto;
  font-size: 0.86em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  overflow: hidden;
}

.reveal table th {
  background: #0b2545;
  color: #ffffff;
  font-weight: 700;
  padding: 10px 16px;
  border: none;
}

.reveal table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 16px;
  color: #1e293b;
}

.reveal table tr:nth-child(even) td {
  background: #f8fafc;
}

/* Clean Image Tables (Grid-like presentation without data table chrome) */
.reveal table:has(img),
.reveal table.image-table,
.reveal table.grid-table {
  border-collapse: separate !important;
  border-spacing: 12px 10px !important;
  box-shadow: none !important;
  background: transparent !important;
  margin: 0.5rem auto !important;
  border: none !important;
  width: auto !important;
  max-width: 720px !important;
}

.reveal table:has(img) thead,
.reveal table:has(img) thead tr,
.reveal table:has(img) thead th,
.reveal table.image-table thead,
.reveal table.grid-table thead {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.reveal table:has(img) tbody,
.reveal table.image-table tbody,
.reveal table.grid-table tbody {
  display: table-row-group !important;
}

.reveal table:has(img) tr,
.reveal table:has(img) tr:nth-child(even) td,
.reveal table:has(img) tr:nth-child(odd) td,
.reveal table.image-table tr,
.reveal table.image-table td,
.reveal table.grid-table tr,
.reveal table.grid-table td {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.reveal table:has(img) td,
.reveal table.image-table td,
.reveal table.grid-table td {
  border: none !important;
  background: transparent !important;
  padding: 4px 8px !important;
  text-align: center !important;
  vertical-align: middle !important;
}

.reveal table:has(img) td img,
.reveal table.image-table td img,
.reveal table.grid-table td img {
  display: block !important;
  margin: 0 auto !important;
  max-width: 320px !important;
  width: 100% !important;
  height: auto !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08) !important;
  border-radius: 6px !important;
}

/* Slide Number Frame Badge */
.reveal .slide-number {
  color: #0b2545;
  font-weight: 700;
  font-size: 13px;
  background: #e2e8f0;
  padding: 4px 10px;
  border-radius: 12px;
  right: 18px;
  bottom: 14px;
}

.reveal .progress {
  height: 4px;
  color: #1d4ed8;
}

.reveal .progress span {
  background: #1d4ed8;
}

/* LaTeX Beamer Header Outline (Headline / Miniframes) */
.beamer-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border-bottom: 1.5px solid rgba(19, 64, 116, 0.18);
  box-shadow: 0 2px 8px rgba(11, 37, 69, 0.05);
  color: #0b2545;
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  font-size: 13px;
  height: 38px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 35 !important;
  transition: opacity 0.2s ease;
}

.beamer-header-section {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 3px 10px;
  border-radius: 4px;
  color: #64748b;
  font-weight: 500;
  transition: all 0.2s ease;
  user-select: none;
}
.beamer-header-section:hover {
  color: #0b2545;
  background: #f1f5f9;
}
.beamer-header-section.is-active {
  color: #0b2545;
  font-weight: 700;
  background: #e2e8f0;
  box-shadow: inset 0 -2px 0 #1d4ed8;
}

.beamer-header-dots {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}

.beamer-header-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(19, 64, 116, 0.25);
  transition: all 0.15s ease;
}
.beamer-header-dot:hover {
  transform: scale(1.4);
}
.beamer-header-dot.is-active {
  background: #1d4ed8;
  transform: scale(1.3);
}

/* LaTeX Beamer Footline / Infoline */
.beamer-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  background: #f1f5f9;
  border-top: 1px solid rgba(19, 64, 116, 0.2);
  color: #0b2545;
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  font-size: 12px;
  height: 28px;
  line-height: 28px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 35 !important;
  transition: opacity 0.2s ease;
}

.beamer-footer-left {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 33%;
}

.beamer-footer-center {
  font-weight: 500;
  color: #134074;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 40%;
  text-align: center;
}

.beamer-footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Fira Code", monospace;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.beamer-footer-page {
  background: rgba(19, 64, 116, 0.12);
  padding: 1px 7px;
  border-radius: 3px;
}